import { useState } from "react";

export const useTime = (time) => {
  const [newtime, setnewtime] = useState();
  setnewtime(new FormData(new Date(time), YYYY - MM - DD, HH, mm, ss));
  return newtime;
};
